package agh.sr.lab4.chat.server;

import java.util.ArrayList;
import java.util.List;

public class ChatDataProvider implements IChatDataProvider {

	private List<String> accountsList = new ArrayList<String>();

	public synchronized boolean doesAccountExists(String nick) {
		return accountsList.contains(nick);
	}

	public synchronized void addNick(String nick) {
		accountsList.add(nick);
	}

}
